package com.youshang.designpattern.chain;

import com.youshang.designpattern.chain.handler.HandleRequest;
import com.youshang.designpattern.chain.handler.HandleBase;

public class HandleA extends HandleBase {
    @Override
    public boolean rollback(HandleRequest request) {
        System.out.println(".....执行HandleA__回滚操作.....");
        return true;
    }

    @Override
    public void execute(HandleRequest request) {
        request.setName("A");
        System.out.println(".....执行HandleA.....");
    }
}
